package com.example.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2016/5/26.
 */
public class TimeUtil {
    public static String timeConversion(String time){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
        try {
            Date parse = sdf.parse(time);
            SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy年MM月dd号 HH点mm分");
            return sdf2.format(parse);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return "";
    }
}
